import audioop
import base64
import os

import requests
def call_transfer_api(transfer_id: int):
    url = "http://192.168.100.63:39080/analysis/transfer/retry_generate"

    myParams = {"id": transfer_id}
    res = requests.post(url=url,json=myParams)

    print("response:", res.text)  # 返回请求结果
def get_transfers():
    file_path = '/home/leo/Documents/北太平庄街道便民服务中心/transfer_id.txt'
    with open(file_path, 'r') as f:
        lines = f.readlines()
        f.close()
        for line in lines:
            line = line.replace('\n', '')
            if line:

                transfer_id = int(line)
                call_transfer_api(transfer_id=transfer_id)


get_transfers()